package com.baseandroid.config;

import com.baseandroid.retrofit.json.Data;
import com.qianbao.qianbaobusiness.json.ContractListBean;
import com.qianbao.qianbaobusiness.json.ContractSignSuccessBean;
import com.qianbao.qianbaobusiness.json.GStoreBean;

import java.util.List;
import java.util.Map;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Path;


public interface ContractApi {
    @GET("/api/sign/contract/gStatus/{mobile}")
    Observable<Data<List<GStoreBean.ResultBean>>> getGstoreList(@Path("mobile") String mobile);

    @GET("/api/sign/contract/list/{merchantNo}")
    Observable<Data<List<ContractListBean.ResultBean>>> getContractList(@Path("merchantNo") String merchantNo);

    @POST("/api/sign/contract/mer_sign_noCheckcode")
    Observable<Data<ContractSignSuccessBean>> signContract(@Body Map<String, String> params);
}
